package com.ubxtech.core.req;

import com.ubxtech.core.validation.ValidationGroups;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 *
 * @author Victor.Xiao
 * @since 2022-01-14 11:18
*/
@EqualsAndHashCode(callSuper = true)
@Schema(title = "BatchIdReq", description = "批量id请求")
@Data
public class BatchIdReq extends Req {

    @Schema(title ="主键列表" )
    @NotEmpty(message = "ids不能为空",groups = {ValidationGroups.BatchDelete.class})
    private List<String> ids;
}
